@import './hack.less';

body {
  height: 100%;
  background: #f0edf1;
}

#s_index {
  & > div {
    margin: auto;
    margin-top: 10px;
    display: flex;
    width: 95%;
    text-align: center;
    background: white;
  }
  .header {
    margin: 0;
    color: black;
    border-radius: 0px;
    height: 2.3em;
    line-height: 2.3em;;
    font-size: 0.95em;
    width: 100%;
    border-bottom: 1px solid #eeeeee;
    box-sizing: border-box;
    padding-left: 2.5%;
    box-shadow: 0px 0px 8px #f2fafd;
    justify-content: space-around;
  }
  .concern {
    position: relative;
    box-shadow: 0px 0px 8px #f2fafd;
    border: 1px solid #eee;
    border-radius: 6px;
    .title {
      position: absolute;
      top: 50%;
      left: 50%;
      color: #888888;
      margin-left: -4.36rem;
    }
    .border-img {
      margin-top: 6%;
      width: 13rem;
      margin: 0 auto;
      height: 15.6rem;
    }
    .swiper-container-horizontal > .swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction {
      bottom: 0px
    }
    .swiper-slide {
      width: 100% !important;
      img {
        -webkit-tap-highlight-color: rgba(255, 0, 0, 0);
        width: 11rem;
        height: 11rem;
      }
      @media only screen and (min-width: 375px) {
        img {
          margin-top: 6%;
          width: 13rem;
          height: 13rem;
        }
      }
    }
    .ten {
      position: absolute;
      bottom: 3%;
      left: 50%;
      z-index: 10;
      margin-left: -45%;
      width: 90%;
      height: 40px;
      color: #a0a0a0;
    }
  }
  .game {
    height: 4rem;
    margin: 10px auto;
    border-radius: 6px;
    .game_title {
      text-align: left;
      margin-left: 15px;
      margin-top: 0.5rem;
      small {
        color: #a0a0a0;
      }
    }
  }
  .buttons {
    text-align: center;
    color: white;
    background: #f0edf1;
    .pay {
      height: 1.8rem;
      line-height: 1.8rem;
      width: 45%;
      border-radius: 10px;
      background: linear-gradient(90deg, #3fdff7, #51cdfe);
    }
    .goods {
      width: 45%;
      margin-left: 10%;
      border-radius: 10px;
      line-height: 1.8rem;
      height: 1.8rem;
      background: white;
      color: #33cefc;
    }
  }
}

.font-red {
  font-size: 1rem;
  color: red;
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 88;
  background-color: rgba(0, 0, 0, .6);
  border-radius: 0;
  .show_head {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
  }
  .lightbox {
    position: absolute;
    z-index: 99;
    bottom: 0;
    background: white;
    width: 100%;
    .lightbox_title {
      height: 2.7em;
      text-align: center;
      line-height: 2.7em;
      border-bottom: 1px solid #eeeeee;
    }
    .lightbox_money {
      margin-left: 2%;
      text-align: left;
      > p {
        color: #959595;
        font-size: 15px;
      }
      + div {
        height: 3em;
        color: #959595;
        font-size: 13px;
        line-height: 3em;
        text-align: center;
      }
      .money {
        border: 1px solid #51cdfe;
        border-radius: 4px;
        display: inline-block;
        width: 30.6%;
        margin-right: 2%;
        margin-bottom: 2%;
        padding-top: 2%;
        padding-bottom: 2%;
        p {
          color: #51cdfe;
          text-align: center;
        }
      }
    }
    .lightbox_coin {
      text-align: center;
    }
  }
}

.popup {
  width: 10rem;
  height: 6rem;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -5rem;
  margin-top: -6rem;
  z-index: 999;
  background: white;
  border: 1px solid #888888;
  border-radius: 8px;
  #progress {
    width: 50px;
    height: 50px;
    margin: 1rem auto;
    .font-status {
      width: 10rem;
      text-align: center;
      margin-left: -3.5rem;
    }
    > div {
      color: dodgerblue;
    }
    circle {
      fill: dodgerblue;
      fill-opacity: 0;
      animation: opacity 1.2s linear infinite;
      .loop(@i,@sum:12) when (@i =< @sum) {
        &:nth-child(@{sum}n+@{i}) {
          -webkit-animation-delay: -@i/10s;
          animation-delay: -@i/10s;
        }
        .loop((@i + 1), @sum);
      }
      .loop(1);
    }
  }

}

@keyframes opacity {
  3% {
    fill-opacity: 1;
  }
  75% {
    fill-opacity: 0;
  }

}

.swiper-pagination-bullet-active {
  background: #3dc2fd;
}

.swiper-button-prev {
  background-image: url("../../static/img/go.png");
  background-size: cover;
}

.swiper-button-next {
  background-image: url("../../static/img/back.png");
  background-size: cover;
}

.fade-enter-active, .fade-leave-active {
  transition: opacity .5s ease-in-out
}

.fade-enter, .fade-leave-to {
  opacity: 0
}

.buttons2 {
  border: 0;
  background: #2fd2fb;
  color: white;
  width: 4rem;
  height: 3rem;
  margin-top: 1rem;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 5px;
}

.p {
  text-align: left;
  font-size: 1.2rem;
}